Trump's diversion of billions for border wall faces first U.S. court test