Nancy Crampton Brophy, an Oregon novelist who wrote an essay called “How to Murder Your Husband,” received a life prison sentence Monday in the murder of her real-life husband, Dan Brophy, whom she shot in the back.