The centre-right National Party on Friday signed an agreement to govern in a coalition with the classically liberal ACT and populist New Zealand First parties nearly six weeks after the country held its general elections.