On the Neyman-Pearson problem for law-invariant risk measures and robust utility functionals