Americans taken hostage at the US embassy in Tehran in 1979 to receive up to $4.4m each under new legislation.