Bonds rallied for a second day as traders bet an aggressive streak of global interest-rate hikes is close to ending, bolstered by optimism that inflation in the world’s biggest economy will continue to slow.