Which if these sentences is correct and can you explain why: The team was happy that it won the cup. The team was happy that they won the cup. TIA.