Court allows Turkish PM to attend Gezi trial