It is long and well established that members of the judiciary do not make public utterances or arguments. For this reason, they are essentially defenseless. President Obama should know this because he's an attorney.
President Obama lowered himself last night. Whether you agree or disagree with him or the Court in their recent decision, what he said about the Court was an absolute cheap shot. The Rep who called him a liar was out of bounds. However, that action pales compared to this. I don't know that a President has ever criticised the Court in a public forum such as last night.
Amongst anything else said about the President, he's a public bully.
Don't know what they can do except not come next time.