Trump’s freeze of an offshore wind project faces scrutiny from a judge he appointed