What is RFRA and why do we care?

One of the key components of today’s Supreme Court Hobby Lobby decision is the Religious Freedom Restoration Act, or RFRA. But what is RFRA and how does it apply to cases involving Obamacare and discrimination against same-sex couples?