Ukraine to grant temporary residency to foreign fighters