A federal judge has ruled that an offshore wind project aimed at powering 600,000 New York homes can resume construction.