Swedish parliament approves bill ending permanent residency for refugees