Company settles after being accused of penalising employees for taking protected forms of leave