GAZA — Hamas, the Islamic group that rules this Palestinian territory, has issued a new education law enforcing a more rigid separation of sexes in schools and prohibiting any relations with Israelis, in line with its strictly religious and nationalist ideology, officials said Monday.