Kagan, joined by Justices Sotomayor and Jackson, said the court has repeatedly cleared firings Congress explicitly prohibited.