WASHINGTON — A Senate panel investigating the causes of the nation's financial crisis on Thursday unveiled evidence that credit-ratings agencies knowingly gave inflated ratings to complex deals backed by shaky U.S. mortgages because of the fees they earned for giving such investment-grade ratings.