The microphone system stopped working during the Jumu'ah prayer and there were a large number of worshippers outside the mosque, leading one of them to deliver the Khutbah (sermon) and perform the prayer with those outside the mosque, what is the ruling on the Khutbah and the prayer?