The Supreme Court on Thursday allowed President Trump to remove members of two independent federal agencies without cause, reinforcing the principle that the president—not unelected bureaucrats—controls the executive branch.