Alina Habba, President Donald Trump’s pick to be the top federal prosecutor in New Jersey, was blocked from handling cases by a district court judge who said her appointment was invalid.