BRUSSELS—
In one of his last major addresses before his retirement this month, Defense Secretary Robert M. Gates said Friday that NATO's sometimes shaky air campaign in Libya had "laid bare" the shortcomings of the alliance, which he said was facing "collective military irrelevance" after years of inadequate defense spending by most of its members.