Toyota Motor Corp.’s announcement Wednesday of Alabama as the home for a shared factory with Mazda Motor Corp. highlights a major shift in U.S. vehicle manufacturing: Foreign auto companies soon will build more cars and trucks in America than the Detroit giants.