Longer maternity leave now signed into law