Appeals court upholds new water quality standards for rivers