Now that I have more information about the damage, I asked a professional that I know very well for advice. He said:
After the leak has been stopped, the sheet rock that was wet around the light needs to be cut out because it is porous paper and chalky material that is very absorbent. It needs to be replaced, not just painted over. Otherwise, the smell and contamination will come back to haunt you.
About the floor, because it was sewage (called "black water") you must pull up the carpet and replace the padding because it can't be cleaned. The padding is not expensive. The carpet can be taken outdoors and both sides steam cleaned (heat is needed to kill the bacteria) and treated with Microban. If the wood subfloor under the carpet is stained it might require treating with bleach.
Then reinstall the carpet with a new pad.
Some carpet cleaning companies, and all restoration companies can do the carpet work.