US court rejects challenge to EPA ballast permit