The Church recognized the song for what it was—a pop tune, not sacred music—and its composers as primarily socialist reformers, not Catholics. It was excommunicated and would stay that way for decades.
“[I]n the days when it is not illegal a good hot Tom and Jerry maker commands good wages and many friends,” wrote Damon Runyon. From personal experience I agree; they’re hard to make.