Sotomayor slams controversial remarks by prosecutor