John 12:47 " Jesus came to save the cosmos not judge it" The Father is the judge not Jesus.
Ephesians 4:6 " one God and Father of all who is over all and through all and in all" so yes God is the Father of the goats also.
It sounds a bit out of context. Here is the whole verse and also including -48:
John 12:47-48
As for anyone who hears My words and does not
keep them, I do not judge him. For I have not come to judge the world, but to save the world. 48There is a judge for the one who rejects Me and does not receive My words: The word that I have spoken will judge him on the last day.
Strong's Concordance for
keep:
It would seem like Jesus is saying He will not judge those who hears His words but does not observe or guard or obey them.
But a judge is coming for those who reject His words (Remember that Jesus is the Word becoming Flesh - John 1:14)
The Pharisees rejected both Jesus and His Words.
A relevant example to the Sheep and Goats:
Even if you do not directly help the least of your brethren (feed, quench their thirst, clothe, comfort them in their distress) but as long as you accept the words/teachings of Jesus on the subject of good stewardship, at the very least, you're not stopping those who are helping the least but encouraging them. Then you are still helping the least/poor even if indirectly.
As opposed to people/Christians who have heard the preaching or heard it from another believer, read the whole Bible but chose not to help the least of our brethen in ways that Jesus described and also consistently avoids HIs teachings on helping the least of our brethren, making excuses it is not their calling.
Worst of all, they even discourage those who are helping the least/poor, stirs up doubt if it is really their calling. These have clearly rejected the teachings of Jesus.
Why it keeps getting back to the subject of Sheep and Goats? How we treat the least is how we treat Jesus. If Jesus fell down, would you have the heart to ignore Him or just tell Him to get up on his feet? Or would you run to Him, take His burden and lift Him back to His feet? Definitely not to be taken lightly.
But a word of caution, we can't turn the concept of humanitarian work into new religion either. Doing things expecting a reward or compensation or any other good things in return. Ultimately, it's about having a heart of flesh and not stone. A heart that bleeds, cries out, and hungry for the truth.