A federal judge blocked Trump administration policies stalling solar and wind projects, handing renewable energy developers a legal victory.