NBC: Texas teacher settles lawsuit with student he forced to write out Pledge of Allegiance