Polish president signs law restricting right to claim asylum