The YPG is at the heart of a U.S.-led campaign against Islamic State in Syria, and it controls swathes of the north, where Kurdish groups have carved out self-governing regions since the start of the conflict.