A failed attempt to sell a New York City office tower helped cause more than a year-long delay for two credit rating agencies to downgrade a commercial mortgage bond to junk, according to a source familiar with the situation and a review of filings from the agencies.