My understanding was that they were released on Reagan’s first day in office because the Muslims wanted to stick it to Carter for harboring the Shah.
But "Argo" concerns some other little-known hostages kept in the Canadian embassy and ignores Reagan, giving the credit pretty much to Carter and one CIA agent.
Actually, the six weren’t hostages. They had escaped and were in hiding.