Solvability of semilinear equations with compact perturbations of operators of monotone type