A judge has dismissed a lawsuit against Alabama Gov. Robert Bentley.