R&D is exactly who H1B is supposed to be for - ie. highly skilled, specialized, and educated positions. Not regular SE jobs.
If you look at your Googles, your Facebooks, your Microsofts, you will find a glut of H1B's working regular SE jobs, such as maintenance and feature development. That's exactly who H1B's are not supposed to be for - and that is the issue.
Mega corps laying off huge engineering teams while simultaneously importing more H1B's tells you everything you need to know. Follow the money, as they say.