Annaly Capital Management nearly tripled its profit from the first to the second quarter as it leaned into its residential credit business.