The world court can do two things. First, arbitrate between two consenting states who agree to abide by the decision. Second, issue advisory rulings which have absolutely no functional authority. America doesn’t have to step in. Nation states around the world wouldn’t have signed onto a world court that could actually compel them to obey, we all like our sovereignty.
Are you not aware of Idaho?