The Catholic Church teaches that the ends do not justify the means. So if something is intrinsically evil, like lying, then regardless of what the end may be, it is is not right to do it – even to save many lives. Catechism of the Catholic Church:
1753 A good intention (for example, that of helping one’s neighbor) does not make behavior that is intrinsically disordered, such as lying and calumny, good or just. The end does not justify the means. Thus the condemnation of an innocent person cannot be justified as a legitimate means of saving the nation. On the other hand, an added bad intention (such as vainglory) makes an act evil that, in and of itself, can be good (such as almsgiving).
scborromeo.org/ccc/para/1753.htm
The midwives were not blessed because they lied. The scripture states why they were blessed and it says that they were blessed “because they feared God”
Jimmy Akin comments on this scripture here (excerpted):
jimmyakin.org/2005/03/desperate_midwi.html
21: And
because the midwives feared God he gave them families.
While many folks look at this passage and conclude that God blessed the midwives for lying, this conclusion does not seem to be borne out by the text, which expressly states that the reason for the blessing was the midwives’ fear of God. This fear of (reverence for) God was manifest chiefly in the midwives’ refusal to kill the Hebrew baby boys. What they told Pharaoh in their desperation was just a secondary attempt to keep what they had done from being exposed and them from being executed.
The lie thus seems secondary to the main thing, which was their defiance of Pharaoh’s evil order so that they might honor God. It’s a “We must obey God rather than men” (Acts 5:29). QUOTE]
Don’t forget women too. We must obey God instead of women too.