The bill would bar the N.C. attorney general from challenging presidential executive orders in state or federal court.