This adaptation of Colm Toibin's provocative novel will ruffle feathers but it's a success, says Charles Spencer