First simultaneous measurement of fission and gamma probabilities of 237U and 239Np via surrogate reactions