Millions to benefit from new flexible working measures