An Irish woman who was charged with attempting suicide by a Dubai court will be allowed to return home, Ireland's prime minister has said, as the case against her is closed.