German Chancellor Olaf Scholz has lost a vote of confidence in the lower house, a move that paves the way for new elections expected to be held in February.