Huh, maybe you found an alternate way/method to get into the red gun room, because part of the answer to that one was very similar to the answer to this one.
The mechanic you use:
Remember how making an outline of a rectangle with blocks causes the outline to fill in?
Do that, around the center area, by dragging the yellow blocks. It should generate four blocks each time you do it.
Repeating this procedure a couple of times will give you enough yellow blocks to interrupt all of the lasers.
Minor extra spoiler:
Note that you don't have to manually block all of the lasers; if you make one big outline around the outside edge of the box, the yellow blocks will fill in and block all the lasers for you.