US Treasuries gain as July inflation data meets expectations