Justice Sotomayor calls out the US Supreme Court in a sharp dissent