"El presidente aprobó una nueva legislación."
Translation:The president passed a new legislation.
"...a new legislation" isn't commonly used. Although "legislation" can mean a single law or body of laws, it's usually only used to refer to the latter. So more natural sounding sentences would be "The president approved new legislation", or "The president approved a new piece of legislation"