Swift Transportation, the nation’s largest truckload carrier, will pay $4 million to the Port of Los Angeles to settle a dispute related to the port’s clean trucks program.