The cases are the latest test of the president’s expansive claims of executive power.