State employees would get eight weeks of paid maternity leave under a bill that passed the House unanimously Thursday.