Saying the president had exceeded his authority, a panel of three federal judges on Thursday blocked an order from President Donald Trump that tried to exclude people in the country illegally from being counted when congressional districts are redrawn.