Republicans turned to politically fraught issues, but Judge Sotomayor’s composure remained intact.