Turkish president signs controversial anti-terrorist law