It was the first time a samba school paid tribute to a sitting president, prompting opposition complaints over federal funding and election rules.