Unlike federal judges before him, a judge in Virginia on Friday ruled in favor of President Trump’s revised travel ban in a case brought by Muslims who said the president’s executive order illegally discriminated against their religion by restricting travel from six majority-Muslim countries.