Thomas makes U.S. Ryder Cup team despite struggles