Turkish president ratifies controversial Internet bill