The party will need to make the most of whatever majority it has.