A 9pm watershed on TV junk food advertising will come into force in October 2025, the government has confirmed.