President Obama used a provision, which Donald Trump cannot easily scrap, to block offshore drilling.