The controversy over President Trump’s selection of Matthew Whitaker as acting attorney general reached the Supreme Court, as a prominent litigator filed papers arguing that even temporary cabinet appointments must be filled with people already confirmed by the Senate.