The yield on the benchmark 10-year Treasury note, a key barometer for borrowing costs for consumers and companies, last week topped 3.1%, its highest close in almost seven years. It’s a climb that’s rippling through markets, buffeting stocks and helping fuel a surprise rally in the dollar as higher rates attract yield-seeking investors to the currency.