I've discussed this in the past. My company started offering 5 month paternity leave at the end of 2016. For a credit card company, this was huge. There had to have been a catch. I took the chance anyway, and got laid off. This isn't uncommon at the company either. I've heard of 3 females so far who also shared the same fate. All of thought it was illegal, but our individual lawyers pretty much summed it up in one sentence: "Sure, it may be... but you have to prove it was solely due to taking leave, and it's not worth it."
I think it wasn't worth it because of an arbitration clause or whatever, but I wasn't going to risk my time, money, and energy required when I just had a baby.