Egypt court rules gay foreigners can be deported, banned from entry