Ministers have pledged eight weeks of full maternity pay for leaders, teachers and support staff in England.