In the eyes of investors, U.S. companies with solid finances look almost as safe as the U.S. government.

Highly rated corporate bonds have passed a milestone that some analysts call the century mark. On average, debt from highly rated companies in the U.S. is now yielding 0.97 percentage point more than benchmark U.S. Treasurys, according to…