Polish parliament passes controversial law restricting supreme court