Turkish president ratifies immunity bill