Palestine U.N. vote expected Thursday; Hamas endorses plan