Summarize legislative tasks and the overall role of the judiciary in shaping public policy?

Here is a Summary:

The judiciary decides what policy is legal and illegal, and can require the executive or legilative branch to fix it, or in rare instances, the judiciary can impose a remedy.
The legislature shapes public policy by passing laws, and approving budgets.