Please provide a comprehensive explanation of the concept of judicial review and its impact within a legal system.