WASHINGTON — President Obama suffered the biggest legal defeat of his administration Thursday when a deadlocked Supreme Court failed to revive his stalled plan to shield millions of undocumented immigrants from deportation and give them the right to work legally in the United States. The justices’ votes were not announced, but the court’s liberals and conservatives had split at oral argument this spring.