EU ratifies trade deal with US before Trump deadline