Judge rules that Czech president Pavel may attend NATO summit