I know they have funded Canadians, though I cannot speak to the details of how they legally remain in the US (or even if they all do) during and after the program.
Most use the visa waiver, it's a slightly grey area if doing YC is valid under the visa waiver (business meetings, raising investment, coding for fun are all legal - but coding for money isn't. YC falls in the graze zone between them).