The European Parliament has passed a critical budget rules law, which will allow member states flexibility in drawing up their budgets.