Stochastic homogenization of maximal monotone relations and applications