The education and police minister will replace Jacinda Ardern following her decision to quit.