The 10-year Treasury yield was headed for its steepest two-week climb in almost a year amid the U.S. and Israel’s war with Iran.