Netflix’s decision to give its workers up to a year of paid leave after the birth or adoption of a baby is the latest example of the unusual benefits that companies have been dangling as they try to attract and retain people with highly coveted skills.