Sears Holdings Corp. obtained a new loan partially funded by an investment firm that manages Bill Gates’s fortune.