Singapore has agreed to share information with the US under a new law aimed at preventing offshore tax evasion by American citizens.