their firstborn
"their firstborn sons"
he also made judgments against their gods
"he also proved that he is greater than their gods". Yahweh proving that he is more powerful than all of the false gods that the Egyptians worshiped is spoken of as if Yahweh judged or punished those false gods.