The writer left his native Ireland when he was a young man, but the nation’s struggle for independence haunted the fiction he wrote in exile.