"Regulations and decisions become binding automatically throughout the EU on their date of application. However, they may require changes in national legislation, and may require implementation by national agencies or regulators."
"Directives on the other hand, must be incorporated by EU countries into their national legislation. Each directive contains a deadline by which EU countries must incorporate its provisions into their national legislation and inform the Commission to that effect."
source: https://commission.europa.eu/law/law-making-process/applying...
That doesn't mean they have the right to ignore the directive and not decide on a law but there is definitely more leeway.