The move is a last-minute effort to block possible action by the incoming Trump administration to expand offshore drilling.