The lack of housing is a general challenge in Stockholm, but especially for newly arrived PhD students (and even more so for new arrivals from other countries).
KTH has a new initiative called KTH Relocation to help with relocation-related issues (both moving to and away from Sweden) for PhD students, university employees, etc.
If you are a student at a Stockholm university, you can also join the SSSB student housing queue.