Första AP-Fonden går in med en miljard kronor i sitt bostadsfastighetsbolag Willhem som ett led i att behålla kreditbetyget.