A federal judge in Boston on Monday overturned the Trump administration’s order to indefinitely halt all federal permitting of offshore and onshore wind projects pending federal review.