This is from a Roman Catholic commentary. I doubt it's the only Catholic view or that this view is exclusive to Catholicism. It is more of a scholarly view based on Catholic scholarship.
.5. if our wickedness brings out God’s uprightness: A logical conclusion from Paul’s contention. If David’s infidelity does not nullify God’s fidelity, but rather makes it manifest, then man’s wickedness will bring about the manifestation of divine uprightness (the attribute, see comment on 1:17). is God unjust to inflict his wrath [on us]?: There is no contradiction in the manifestation of divine uprightness and wrath. Only a human way of looking at it would suggest that human wickedness should not be visited by divine wrath. Underlying the question is the suggestion that if man’s wickedness really brings out God’s salvific uprightness and fidelity, then he would be unjust in inflicting his wrath. Again Paul emphatically rejects the notion; see comment on 3:3.6. otherwise how is God to judge the world?: A fundamental Jewish belief regarded Yahweh as the eschatological Judge of the world (Is 66:16; Jl 3:12; Pss 94:2; 96:13; cf. Rom 2:16).7. if the truth of God…: This is really the same objection as 3:5, involving merely a third attribute.8. Paul does not take pains to refute the sophism involved in the accusation leveled against him (or Christians in general). Nothing in the text suggests that such accusations actually circulated in the Roman church and that this is why he mentions them.
Brown, R. E., Fitzmyer, J. A., & Murphy, R. E. (1996). The Jerome Biblical commentary (Vol. 2, p. 300). Englewood Cliffs, NJ: Prentice-Hall.