Texas doctor apologizes after viral tweet