A Flat Photoionization Rate at 2 ≤ z ≤ 4.2: Evidence for a Stellar-Dominated UV Background and against a Decline of Cosmic Star Formation beyond z ~ 3