Hobby Lobby had objected to the requirement in Obamacare that would force them to pay for their employees’ abortive procedures. Hobby Lobby never objected to paying for contraception that would prevent pregnancy in the first place, but instead only objected to those treatments that would end a pregnancy after conception or fertilization had taken place.
The full text of Justice Alito’s 5-4 majority opinion is here in pdf format.