LOS ANGELES  A federal judge has dealt another blow to President Trump’s executive order barring some foreigners from coming into the United States, in a ruling that added to the confusion over the legality of the immigration measure.