Poland's PM, president clash over control of top court