Anthony Foxx was sworn in as the nation’s 17th secretary of transportation Tuesday at U.S. Department of Transportation headquarters in Washington.