A federal judge has ordered the Trump administration to lift its blockade on new U.S. wind and solar projects.