My experience has been that the event animals and habitats remain available for purchase until the next update. So for me, even though the Storybook ended Sunday night, the habitat and animals were still available for purchase up until the update today (Tuesday around noon my time).
I bought 3 of the Arabian Nights habitat.