US tech giants file legal brief opposing Trump’s ban