A US and Saudi citizen who was jailed in Riyadh over tweets that were critical of the Saudi government has been allowed to return home to Florida.