A Nigerian atheist and outspoken critic of religion was sentenced to 24 years in jail on Tuesday after pleading guilty to blasphemy charges in the largely Muslim northern state of Kano, in a ruling that puts a spotlight on religious freedoms in the country.