The star's appearance came after a dramatic week in which her performance was pulled from and then reinstated to the show's lineup

By Jeff Nelson
Updated May 22, 2016 10:05 PM
Advertisement
Kevin Winter/Getty

Kesha showed her “True Colors” Sunday night.

Taking the stage for her first televised performance since her legal battle against longtime producer Dr. Luke heated up, the singer performed a cover of Bob Dylan’s “It Ain’t Me, Babe.”

Kesha took the stage with singer-songwriter Ben Folds, who walked the red carpet with her earlier in the evening. After their performance, the singer waved and blew kisses to the crowd, which raised for a standing ovation.

“THANK GOD MY BUDDY BEN FOLDS. he’s so kind and lovely and supportive and positive. and look how adorable he is,” she posted on Instagram ahead of the show.

The performance almost never happened at all.

On Tuesday, dick clark productions told PEOPLE in a statement: “Kesha accepted an invitation to perform on the show and she received written approval from Dr. Luke’s record label, Kemosabe Records.

“Kemosabe subsequently rescinded its approval following a media report on Wednesday, May 11 regarding Kesha’s appearance on the BBMAs. Unfortunately, Kesha and Kemosabe have since been unable to come to an agreement for Kesha to perform on the show,” the statement continues. “Dick clark productions has a long standing relationship with Kesha. We hope that the parties can come to an arrangement such that we can continue that long standing relationship with a performance by Kesha on the Billboard Music Awards stage on May 22,” DCP added.

After she was originally pulled from the show’s lineup, Kesha and Folds, 49, took the stage in L.A. on Wednesday, where she performed the Dylan song.

Kesha, 29, and Dr. Luke, 42, have been in embroiled in a lawsuit since September 2014, when Kesha took legal action to terminate her contracts with the record exec and producer (born Lukasz Gottwald) after accusing him of drugging, raping and verbally and emotionally abusing her. Luke has vehemently denied the allegations, suing for defamation and breach of contract.

Later Tuesday, a source told PEOPLE, Kesha wrote a statement to Luke yesterday and told him the performance wasn’t about him at all. He had a full day to consider, but still wouldn’t allow her to perform.” (A source close to Luke called this correspondence an “urban myth.”)

RELATED VIDEO: Kesha’s Mom and Lady Gaga Defend Singer After Her Billboard Music Awards Performance Is Canceled

On Thursday – after Kesha fans, including her mom, Pebe, and Lady Gagatook to social media to support the “TiK ToK” singer – her performance was reinstated to the show’s lineup.

“We are pleased that Kesha and Kemosabe Records have reached an agreement and very much look forward to having Kesha perform on the Billboard Music Awards this Sunday night on ABC,” DCP confirmed to PEOPLE.

According to Luke’s label, Kemosabe Records, “Kesha’s performance … was always approved, in good faith” and was “only suspended when Kemosabe learned Kesha was to use the performance as a platform to discuss the litigation.”

While Kesha has an ongoing lawsuit against Luke in California, her New York case was dealt a blow in April when a Supreme Court judge dismissed all but one of Kesha’s claims.

The 2016 Billboard Music Awards – hosted by Ludacris and Ciara – airs live from T-Mobile Arena in Las Vegas on Sunday, May 22 at 8 p.m. ET on ABC.