The U.S. Supreme Court has agreed to rule on the legality of executive orders by President Obama that would delay deportation of more than 4 million undocumented immigrants.