Poland's president sees need for law change after EU censure