The Speaker of the House of Commons has slammed ministers for making major announcements on TikTok before making them in the chamber.