Legal industry split over whether to join amicus brief against president’s order for fear of retaliation