With a TextElement, the only way I know to set the background color is to set the background to a balloon callout. But this has some likely unwanted callout features.
Probably best to use ParagraphTextElement, which gives you control over background, outline, etc.
There is a sample of how to use it in the thread: Paragraph text in Pagelayout