U.S. manufacturing posts biggest gain in more than 2 years