A federal tax ruling dealt a new blow to a group of pipeline firms that had helped finance a massive build-out of energy infrastructure, intensifying questions on Wall Street about the sector’s survival.

The decision Thursday by the Federal Energy Regulatory Commission to disallow certain income-tax allowances could hasten the demise of many so-called master limited partnerships, which were already on a lengthy losing streak.

The...