Republicans narrowly wins the house