H1B is explicitly a dual intent visa. You are allowed to pursue a green card while in the country on an H1B. It has been an accepted, valid path for a very long time now. If the government wishes to change that of course they can. But the humane approach would be to let those who have already started the process finish it.