The congresswoman will beat out Republican Jack Ciattarelli in a closely watched race that could have implications for next year’s midterm elections.