Trump’s push to lift offshore drilling bans ‘illegal’: Judge