Bonds are having a moment. With the Federal Reserve expected to be at the end of its interest-rate hiking cycle, investors are reassessing the fixed-income market—and looking to high-quality bonds with intermediate maturities as the best bet for stable income.