US soldier Chelsea Manning, who is serving a prison sentence for passing classified files to WikiLeaks, has ended her hunger strike after being told by the Army that she would be allowed.