What you have done looks OK as long as they didn’t respect your beliefs and turned off what was forbidden. It goes without saying that you should say this in a very nice and gentle way but at the end, you must not sit with them or join them.
You could have stayed in the kitchen or in another room but you shouldn’t sit with them unless they turn it off completely or at least turn the sound off and you give your back to it.