NBC: GOP lawmaker apologizes for cursing at Democrat over masks