House Republicans narrowly advanced a measure setting the stage for a massive conservative policy overhaul.