TLDR: The ban is set to take effect on January 19, 2025. It can be postponed once for a duration of 90 days by a presidential act. This appeals court upheld the law.
We didn't know the outcome for certain. It could have equally been. "Why the start of Joe Biden's second term?" if you go back early enough on the timeline.
Yes, I think it's a coincidence. The language of the law specifies the ban will go into effect 270 days after the law's passage. I don't think any one law maker can perfectly predict how long it will take for a law to make it through the House, Senate, and Presidential signature. This law was introduced on March 5, 2024 and signed by Biden on April 24, 2024.