The president and first lady Michelle Obama were coaxed to the dance floor by professional tango dancers during a state dinner.